package com.smart.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("运营人员Update请求模型")
public class OperateUserUpdateRequest implements Serializable {
    @NotNull(message = "用户id不能为空")
    @ApiModelProperty("主键id")
    private Long id;
    @NotEmpty(message = "用户名不能为空")
    @ApiModelProperty("用户名")
    private String username;
    @NotEmpty(message = "账号不能为空")
    @ApiModelProperty("账号")
    private String account;
    @NotEmpty(message = "手机号不能为空")
    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty("部门")
    private String department;
    @ApiModelProperty("角色id集合")
    private List<Long> roleIds;
}
